import * as Yup from "yup";

export const validationPhoneSchema = Yup.object().shape({
    phone: Yup.string()
        .matches(/^[0-9]{11}$/, '手机号码必须是11位数字')
        .max(11, "名字至多包含11个字符")
        .min(11, "名字至少包含11个字符")
        .required('手机号码是必填项'),
});
